package com.jbbis.portal.calendar.util;

public class ActionUtil {
	
	/**
	 * Validates if the object is null or the string is blank
	 * 
	 * @param s
	 * @return
	 */
	public static boolean isBlank(Object s) {

		if (s == null)
			return true;
		if (String.class.isInstance(s) && ((String) s).trim().equals(""))
			return true;

		return false;
	}
   

	/**
	 * Validates if the object is not null or the string is not blank
	 * 
	 * @param s
	 * @return
	 */
	public static boolean isNotBlank(Object s) {
		return !isBlank(s);
	}
}
